# -*- coding: utf-8 -*-
'''
@time: 2019/2/14 15:06
@author: hyq
@software: PyCharm
@file: test02.py
'''

# import random
# phone = random.randint(13000000000,13999999999)
# print(phone)

# from datetime import *
# day = date.today()
# timedelta()

# import hashlib
# md5 = hashlib.md5(b"123456")
# password_md5 = md5.hexdigest()
# print(password_md5)

import threading
# from datetime import *
# def test():
#     x = 0
#     while(x==0):
#         print(datetime.now())
# def looptest():
#     for i in range(10):
#         test()
# def thd():
#     threads = []
#     for i in range(10):
#         t = threading.Thread(target=test)
#         threads.append(t)
#         t.setDaemon(True)
#     for t in threads:
#         t.start()
# if __name__ == '__main__':
#     thd()
#     print('end')

# THREAD_NUM = 2
# ONE_WORKER_NUM = 5
# def test():
#     print('1')
# def working():
#     for i in range(0,ONE_WORKER_NUM):
#         test()
# def t():
#     Threads = []
#     for i in range(THREAD_NUM):
#         t = threading.Thread(target=working,name='T'+str(i))
#         t.setDaemon(True)
#         Threads.append(t)
#     for t in Threads:
#         t.start()
#     for t in Threads:
#         t.join()
# if __name__ == '__main__':
#     t()
